package com.java.service;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import com.java.po.Student;
import com.java.util.PageUtil;

public interface StudentService {

	/**
	 * 添加基本学生信息
	 * 
	 * @param student
	 * @return
	 * @throws Exception
	 */
	int insertStudentOne(Student student) throws Exception;

	/**
	 * 删除一条学生数据
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	int deleteStudentById(int id) throws Exception;

	/**
	 * 修改学生信息
	 * 
	 * @param student
	 * @return
	 * @throws Exception
	 */
	int updateStudentById(Student student) throws Exception;

	/**
	 * 用于学生登陆与报到
	 * 
	 * @param username
	 * @param studentid
	 * @param password
	 * @return
	 */
	Student findByNameAndStuId(String username, int studentid, String password);

	/**
	 * 查询多条学生数据
	 * 
	 * @param queryMap
	 * @return
	 * @throws Exception
	 */
	List<Student> findListStudent(Map<String, Object> queryMap) throws Exception;

	// 分页操作
	public PageUtil<Student> findPageStudent(Map<String, Object> queryMap,int currentPage) throws SQLException;

}
